/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package smartgrid;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class FaceBookAccountCriteria extends AbstractORMCriteria {
	public final IntegerExpression ID;
	public final StringExpression UId;
	public final StringExpression Nome;
	public final StringExpression EMail;
	public final BooleanExpression Enable;
	
	public FaceBookAccountCriteria(Criteria criteria) {
		super(criteria);
		ID = new IntegerExpression("ID", this);
		UId = new StringExpression("UId", this);
		Nome = new StringExpression("Nome", this);
		EMail = new StringExpression("EMail", this);
		Enable = new BooleanExpression("Enable", this);
	}
	
	public FaceBookAccountCriteria(PersistentSession session) {
		this(session.createCriteria(FaceBookAccount.class));
	}
	
	public FaceBookAccountCriteria() throws PersistentException {
		this(smartgrid.SmartgridPersistentManager.instance().getSession());
	}
	
	public ContractCriteria createContract_roleCriteria() {
		return new ContractCriteria(createCriteria("ORM_Contract_role"));
	}
	
	public AnnotationCriteria createAnnotationsCriteria() {
		return new AnnotationCriteria(createCriteria("ORM_Annotations"));
	}
	
	public FaceBookAccount uniqueFaceBookAccount() {
		return (FaceBookAccount) super.uniqueResult();
	}
	
	public FaceBookAccount[] listFaceBookAccount() {
		java.util.List list = super.list();
		return (FaceBookAccount[]) list.toArray(new FaceBookAccount[list.size()]);
	}
}

